using Microsoft.AspNetCore.Mvc;

namespace ShopForWeb.UI.Controllers;
[Route("transfer")]
public class TransferController : Controller
{

  [Route("test1")]
  public IActionResult Test1(UserModel user)
  {
    ViewBag.User = user;
    return View();
  }


  [Route("test2")]
  public IActionResult Test2([FromForm] List<String> hobby)
  {
    ViewBag.Hobby = hobby;
    return View();
  }


  //  [Route("test3/{id?}"),HttpGet]

  [HttpGet("test3/{id?}")]

  //  [Route("test3/{id?}")]

  // [HttpGet]
  public IActionResult Test3([FromRoute] int id = 1)
  {
    return View();
  }

}
